import { http } from '@/utils/http'

/**
 * 商品详情
 * @param id 商品id
 */
export const getGoodsByIdAPI = (id: string) => {
  return http<any>({
    method: 'GET',
    url: '/shop/consume/mobile/product/details/' + id,
  })
}
export const getGoodsListAPI = (data?: any) => {
  return http<any>({
    method: 'GET',
    url: '/shop/consume/mobile/home/product/list',
    data,
  })
}
